package com.lvfuyang.commonproject.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 用户表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user")
public class User {

    @TableId(value = "uuid")
    private String uuid;

    @TableField("username")
    private String username;

    @TableField("password")
    private String password;

    @TableField("authority_id")
    private Integer authorityId;

    @TableField("gender")
    private Integer gender;

    @TableField("phone")
    private String phone;

    @TableField("is_active")
    private Boolean isActive;

    @TableField("is_delete")
    private Boolean isDelete;

    @TableField("created_datetime")
    private LocalDateTime createdDatetime;

    @TableField("updated_datetime")
    private LocalDateTime updatedDatetime;

    @TableField("remark")
    private String remark;

    // 关联查询字段
    @TableField(exist = false)
    private String authorityName;
} 